package com.midian.model.activity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.midian.model.common.BaseModel;

import org.hibernate.annotations.Type;

import com.vividsolutions.jts.geom.Point;

/**
 * 活动
 * 
 */
@Entity
@Table(name = "activity")
public class Activity extends BaseModel {
	/**封面图片id*/
	private String coverPicId;
	/**活动标题*/
	private String title;
	/**机构id*/
	private String organizationId;
	/**活动类型id*/
	private String typeId;
	/**大人价格*/
	private Double adultPrice;
	/**小孩价格*/
	private Double childPrice;
	/**活动适合的小孩年龄,多个用逗号隔开*/
	private String ages;
	/**活动开始时间*/
	private Date beginTime;
	/**联系人姓名*/
	private String contactPerson;
	/**联系人号码*/
	private String contactNum;
	/**联系地址*/
	private String contactAddress;
	/**联系位置*/
	@Type(type = "org.hibernatespatial.GeometryUserType")
	private Point contactAddressLocation;
	/**联系位置经度*/
	private Double contactAddressLon;
	/**联系位置纬度*/
	private Double contactAddressLat;
	/**活动地址*/
	private String activityAddress;
	/**活动地址位置*/
	@Type(type = "org.hibernatespatial.GeometryUserType")
	private Point activityAddressLocation;
	/**活动地址经度*/
	private Double activityAddressLon;
	/**活动地址纬度*/
	private Double activityAddressLat;
	/**活动详情*/
	private String detail;
	/**已报名人数*/
	private Integer joinCount;
	/**限制报名人数*/
	private Integer joinLimitCount;
	/**省id*/
	private String provinceId;
	/**城市id*/
	private String cityId;
	/**区id*/
	private String areaId;
	/**街道id*/
	private String streetId;
	/**类型名称*/
	@Transient 
	private String typeName;
	/**机构名称*/
	@Transient 
	private String organizationName;
	/**距离*/
	@Transient 
	private Double distance;
	/**大人是否需要报名 1需要  0不需要*/
	private Integer isAdultRecord;
	/**图片集，逗号隔开*/
	@Transient 
	private String picIds;

	public String getCoverPicId() {
		return coverPicId;
	}

	public void setCoverPicId(String coverPicId) {
		this.coverPicId = coverPicId;
	}
	
	public Integer getIsAdultRecord() {
		return isAdultRecord;
	}

	public void setIsAdultRecord(Integer isAdultRecord) {
		this.isAdultRecord = isAdultRecord;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(String organizationId) {
		this.organizationId = organizationId;
	}

	public String getTypeId() {
		return typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}

	public Double getAdultPrice() {
		return adultPrice;
	}

	public void setAdultPrice(Double adultPrice) {
		this.adultPrice = adultPrice;
	}

	public Double getChildPrice() {
		return childPrice;
	}

	public void setChildPrice(Double childPrice) {
		this.childPrice = childPrice;
	}

	public String getAges() {
		return ages;
	}

	public void setAges(String ages) {
		this.ages = ages;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public String getContactPerson() {
		return contactPerson;
	}

	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}

	public String getContactNum() {
		return contactNum;
	}

	public void setContactNum(String contactNum) {
		this.contactNum = contactNum;
	}

	public String getContactAddress() {
		return contactAddress;
	}

	public void setContactAddress(String contactAddress) {
		this.contactAddress = contactAddress;
	}

	public Point getContactAddressLocation() {
		return contactAddressLocation;
	}

	public void setContactAddressLocation(Point contactAddressLocation) {
		this.contactAddressLocation = contactAddressLocation;
	}

	public Double getContactAddressLon() {
		return contactAddressLon;
	}

	public void setContactAddressLon(Double contactAddressLon) {
		this.contactAddressLon = contactAddressLon;
	}

	public Double getContactAddressLat() {
		return contactAddressLat;
	}

	public void setContactAddressLat(Double contactAddressLat) {
		this.contactAddressLat = contactAddressLat;
	}

	public String getActivityAddress() {
		return activityAddress;
	}

	public void setActivityAddress(String activityAddress) {
		this.activityAddress = activityAddress;
	}

	public Point getActivityAddressLocation() {
		return activityAddressLocation;
	}

	public void setActivityAddressLocation(Point activityAddressLocation) {
		this.activityAddressLocation = activityAddressLocation;
	}

	public Double getActivityAddressLon() {
		return activityAddressLon;
	}

	public void setActivityAddressLon(Double activityAddressLon) {
		this.activityAddressLon = activityAddressLon;
	}

	public Double getActivityAddressLat() {
		return activityAddressLat;
	}

	public void setActivityAddressLat(Double activityAddressLat) {
		this.activityAddressLat = activityAddressLat;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public Integer getJoinCount() {
		return joinCount;
	}

	public void setJoinCount(Integer joinCount) {
		this.joinCount = joinCount;
	}

	public Integer getJoinLimitCount() {
		return joinLimitCount;
	}

	public void setJoinLimitCount(Integer joinLimitCount) {
		this.joinLimitCount = joinLimitCount;
	}

	public String getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}

	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}

	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	public String getStreetId() {
		return streetId;
	}

	public void setStreetId(String streetId) {
		this.streetId = streetId;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getOrganizationName() {
		return organizationName;
	}

	public void setOrganizationName(String organizationName) {
		this.organizationName = organizationName;
	}

	public Double getDistance() {
		return distance;
	}

	public void setDistance(Double distance) {
		this.distance = distance;
	}

	public String getPicIds() {
		return picIds;
	}

	public void setPicIds(String picIds) {
		this.picIds = picIds;
	}
	
	
}
